package com.lovo.order.service;

import com.lovo.common.bean.Product;
import com.lovo.order.form.ProductForm;
import com.lovo.order.service.impl.ProductServiceCallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient(value = "shop-product")
public interface ProductService {
    @GetMapping("/products/ids")
    Object getByIds(@RequestParam List<Integer> ids);
    @GetMapping("/products/{id}")
    Object getById(@PathVariable Integer id);
    @PutMapping("/products/{id}")
    Object update(@PathVariable Integer id, @RequestBody Product product);
}
